﻿
@{
    Layout = null;
}

<form id="form1">
    <table class="form" style="margin-top:10px;">
        <tr>
            <th class="formTitle">总计: </th>
            <td class="formValue">
                <span id="spzje"></span>
            </td>
        </tr>
        <tr>
            <th class="formTitle"><span class="required">*</span>模板名称: </th>
            <td class="formValue">
                <input id="mbmc" name="mbmc" type="text" class="form-control required" />
            </td>
            <td class="formTitle"><span class="required">*</span>模板类型：</td>
            <td class="formValue">
                <select id="mblx" class="form-control required">
                    <option value="">==请选择==</option>
                </select>
            </td>
            <td class="formValue">
                <input type="button" id="" class="btn btn-primary" value="保存" style="margin-left:20%; width:20%;" onclick="Save()" />
                <input type="button" id="" class="btn btn-primary" value="删除" style="margin-left:10%; width:20%;" onclick="Delete()" />
            </td>
            <td></td>
        </tr>
    </table>
</form>
<script>
    var zje = [];
    //模板总金额
    function getgridTotalAmt(grid) {
        var amt = 0.00;
        if (zje != null) {
            var ids = $("#" + grid + "").getDataIDs();
            for (var i = 0; i < ids.length; i++) {
                if (!!zje[ids[i]]) {
                    amt = amt + parseFloat(zje[ids[i]]);
                }
            }
            $("#spzje").html(parseFloat(amt).toFixed(2));
        }
    }
</script>